//
//  BaseViewController.swift
//  LSWeibo1
//
//  Created by 李明禄 on 2018/11/28.
//  Copyright © 2018 SocererGroup. All rights reserved.
//

import UIKit

class BaseViewController: UIViewController {
    
    lazy var navBar = LSNavBar.init(frame: CGRect(x: 0, y: 0, width: UIScreen.cz_screenWidth(), height: 64))
    
    lazy var navBarItem = UINavigationItem()
    
    override var title: String? {
        didSet {
            navBarItem.title = title
        }
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        setupUI()
        // Do any additional setup after loading the view.
    }
    
    func setupUI() {
        
        self.view.backgroundColor = UIColor.cz_random()
        self.view.addSubview(navBar)
        
        navBar.items = [navBarItem]
        
    }
    

}

extension BaseViewController{
    
   
}
